/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-15 11:00:54
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-04 09:17:00
 * @FilePath: \driving-training-admin\src\views\classManagement\class\list\config.ts
 */
export const tableConfig = {
    headerOperation: [
        {
            type: 'create',
            visible: true,
            permission: ['POST:/api/system/class/manage/add'],
            className: '',
            name: '新增班别',
            button: 'button',
            radioGroup: []
        }
    ],
    search: [
        { key: 'className', type: 'text', name: '班别名称', placeholder: '' },
        {
            key: 'schoolId',
            type: 'select',
            name: '所属驾校',
            modelValue: '',
            options: <any[]>[]
        }
    ],
    permission: ['GET:/api/system/class/manage/getPageList'],
    table: {
        operationWidth: '82px',
        operation: [
            {
                type: 'edit',
                visible: true,
                permission: ['POST:/api/system/class/manage/edit', 'GET:/api/system/class/manage/detailById'],
                className: '',
                name: '编辑'
            }
        ],

        propName: {
            classNumber: '班别编号',
            className: '班别名称',
            schoolName: '所属驾校',
            schoolCity: '所在城市',
            status: '状态',
            createBy: '操作人',
            createTime: '创建时间',
            updateTime: '更新时间'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: true,
            permission: ['POST:/api/system/class/manage/updateDisable'],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
